package com.db.service;

import com.db.entity.Person;

import java.util.List;

public interface PersonService {

    public List<Person> RetrieveAll(Integer userid);

    public Person retrievePersonByNameMobile(Person person, Integer userid);

    public void addPerson(Person person);

    public void removePerson(Integer personId);

    public Person showPerson(Integer personId, Integer userid);

    public void changePerson(Person person);

    public List<Person> retrieveLimit(Integer pageIndex, Integer userid);

    public List<Person> retrieveByName(Integer pageIndex, String personName, Integer userid);

    public List<Person>retrieveByMobile(Integer pageIndex, String mobile, Integer userid);

    public List<Person>retrieveByAddress(Integer pageIndex, String address, Integer userid);

    public List<Person> retrieveByNameNo(String personName, Integer userid);

    public List<Person>retrieveByMobileNo(String mobile, Integer userid);

    public List<Person>retrieveByAddressNo(String address, Integer userid);

}
